package com.clstu.processors;

public class CpuNum {
    public static void main(String[] args) {
        Runtime runtime=Runtime.getRuntime();
        int cpuNum=runtime.availableProcessors();
        System.out.println("可用的cpu 个数："+cpuNum);//12
    }
}
